import { ShaderMaterial } from "three";
import vertex from "@/shader/matcap/vertex.glsl";
import fragment from "@/shader/matcap/fragment.glsl";

export default function MatCap(texture) {
  return new ShaderMaterial({
    vertexShader: vertex,
    fragmentShader: fragment,
    uniforms: {
      uTexture: {
        value: texture
      }
    }
  });
}